ai variables:

0 - nothing 2 do... -> change it
1 - melee attack (run to enemy)
2 - range attack
3 - run away